//
//  HottestSitesModel.m
//  NBTripe
//
//  Created by 陈曦 on 16/1/11.
//  Copyright © 2016年 Vicki. All rights reserved.
//

#import "HottestSitesModel.h"

@implementation HottestSitesModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"description"]) {
        self.descriptions = value;
    }
    if ([key isEqualToString:@"tips"]) {
        NSMutableArray *mutableArray = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary *dic in value) {
            Tips *tipsModel = [[Tips alloc] initWithDataSource:dic];
            [mutableArray addObject:tipsModel];
        }
        self.tipsArray = [NSArray arrayWithArray:mutableArray];
    }
    
}

@end





















